package com.carryking.smart.rpc.entity;

import lombok.Data;

/**
 * Created by jincarry on 2018/1/10.
 */
@Data
public class ResponseEntity {
    private long requestId;
    /**
     * 0=返回成功 -1=超时 -2=远程服务异常 {@link com.carryking.smart.rpc.constant.RespStatusConstant}
     */
    private int code;
    private String msg;
    private Class respClass;
    private Object respBody;
    /**
     * 发生异常则返回异常信息
     */
    private Exception exception;
}
